﻿using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Model;
using YouHP.DALFactory;

namespace YouHP.BLL
{
    public class AreaBLL
    {
        #region 单件模式
        static AreaBLL _Instance;

        public static AreaBLL Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new AreaBLL();
                }
                return _Instance;
            }
        }
        #endregion

        public List<AreaInfo> GetProvinceList()
        {
            return DataAccess.AreaDAL.GetProvinceList();
        }

        public List<AreaInfo> GetAreaListByProvice(int provinceId)
        {
            return DataAccess.AreaDAL.GetAreaListByProvice(provinceId);
        }
    }
}
